/*
 * @Author: fishroom
 * @Date: 2021-08-22 20:47:25
 * @LastEditTime: 2021-09-06 19:25:10
 * @FilePath: \backstage\src\store\map\map.js
 */

import axios from "axios";
//地图页面请求
export function getMapSelect({ commit }) {
  axios.get("/api/zl/area/queryArea").then(res => {
    commit("getMapSelectList", res.data.data);
  });
}
export function getMapSearch({ commit }, obj) {
  axios
    .get("/api/front/zuoLuo/queryMap", {
      params: {
        provinceId: obj.provinceId,
        cityId: obj.cityId,
        typeId: obj.typeId
      }
    })
    .then(res => {
      commit("getMapSearchList", res.data.data);
    });
}
